package com.hjm.project.TransactionAccumulation.transactionAccumulationD.domain;

import com.hjm.framework.web.domain.BaseEntity;
import java.math.BigDecimal;
import java.util.Date;
import com.hjm.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 增量累计明细对象 transaction_accumulation_d
 * 
 * @author maker-platform
 * @date 2021-07-07
 */

@Data
public class TransactionAccumulationD extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** pk_id */
    private Integer id;

    /** 累计总表id  （TRANSACTION_ACCUMULATION） */
    private Integer transactionAccumulationId;

    /** 代理编号 */
    @Excel(name = "代理编号")
    private String agentNum;

    /** 代理名称 */
    @Excel(name = "代理名称")
    private String agentName;

    /** 团长编号 */
    @Excel(name = "团长编号")
    private String parentYlId;

    /** 团长名称 */
    @Excel(name = "团长名称")
    private String parentYlName;

    /** 1 团长 2 资深总监 */
    @Excel(name = "类型",readConverterExp = "1=团长,2=资深总监")
    private Integer type;

    /** 添加date */
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addDate;

    /** 单次累计金额（元） */
    @Excel(name = "单次累计金额")
    private BigDecimal money;

    /** 添加人 */
    private String addMan;

    /** 累加前金额（元） */
    @Excel(name = "累加前金额")
    private BigDecimal beforeTotalMoney;

    /** 累加后的金额（元） */
    @Excel(name = "累加后的金额")
    private BigDecimal afterTotalMoney;

    /** 累加前的当前金额（元） */
    @Excel(name = "累加前的当前金额")
    private BigDecimal beforeNowMoney;

    /** 累加后的当前金额（元） */
    @Excel(name = "累加后的当前金额")
    private BigDecimal afterNowMoney;








    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("transactionAccumulationId", getTransactionAccumulationId())
            .append("agentNum", getAgentNum())
            .append("agentName", getAgentName())
            .append("type", getType())
            .append("addDate", getAddDate())
            .append("money", getMoney())
            .append("addMan", getAddMan())
            .append("beforeTotalMoney", getBeforeTotalMoney())
            .append("afterTotalMoney", getAfterTotalMoney())
            .append("beforeNowMoney", getBeforeNowMoney())
            .append("afterNowMoney", getAfterNowMoney())
            .toString();
    }
}
